/*
 * Prop.java
 *
 * Created on 4 marzo 2004, 15.23
 */

package net.ermannofranco.xml;

/**
 * Semplice wrapper nome-valore, senza controllo ne' convalida classe ad uso
 * interno
 * 
 * @author ermanno (ermanno.franco@gmail.com)
 */
public class Prop implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3736767577186816655L;
	private String name;
	private String value;

	/**
	 * Creates a new protected instance of Prop
	 * 
	 * @param name
	 * @param value
	 */

	protected Prop(String name, String value) {
		this.name = name;
		this.value = value;
		// char[] invalids=Static.getInvalidChars(name);
		// if (invalids!=null) throw new SyntaxException("caratteri \""+new
		// String(invalids)+"\" non validi.");

	}

	/**
	 * @return
	 */
	protected String getName() {
		return name;
	}

	/**
	 * @return
	 */
	protected String getValue() {
		return value;
	}

}
